Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()
# src	= Glob('*.c')
src = []
for p in os.listdir(cwd) :
    if p.endswith(".c"):
        src += [p]

CPPPATH = [cwd,  cwd + "/../include", 
                 cwd + "/../packages/vsprintf", 
                 cwd + "/../packages/lfs",
                 cwd + "/../packages/airkiss",
                 cwd + "/../packages/fatfs",
                 cwd + "/../packages/u8g2",
                 ]

src.remove('luat_msh_rtt.c')
#src.remove('luat_uart_rtt.c')
#src.remove('luat_socket_rtt.c')

group = DefineGroup('rtt', src, depend = [], CPPPATH = CPPPATH)

Return('group')
